package com.itheima.aop;

import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

@Component
@Aspect
@Order(2)
@Slf4j
public class Before1 {
    @Before("@annotation(com.itheima.Cache)")
    public void before(){
        log.info("切面1执行");
    }
}
